<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>sdk demo</title>
  </head>
  <body>
    <div>
      <button onclick="ejectJsError()">抛出js错误</button>
      <button onclick="ejectPromiseError()">抛出promise错误</button>
    </div>
    <script>
      function ejectJsError() {
        window.a.b = 'hello world';
      }
      function ejectPromiseError() {
        Promise.resolve().then(()=>{
          window.a.b = 'hello world';
        });
      }
    </script>
  </body>
</html>
